package class2334;

import java.util.Scanner;

public class example13 {
    public static void mian(String[] args){
      int password =  123456;
      int input;
      do{
          System.out.println("请输入您的密码：");
          Scanner scanner = new Scanner((System.in));
          input = scanner.nextInt();
          if(input !=password){
              System.out.println("输入密码错误");
          }
      }while (input != password);
      System.out.println("密码输入正确");
    }
}
